package day1103.demo06;

import java.util.function.Consumer;

/**
 * @author wql
 * @version 1.0
 * @date 2022/11/3 15:17
 */

public class Test {
    public static void main(String[] args) {
        //void accept(T t);
        Consumer<Integer> consumer=aa->
                System.out.println("1+1="+aa);
        wql(consumer,2);
    }

    public static void wql(Consumer<Integer> consumer,Integer num ){
        consumer.accept(num);
    }
}
